Main Page | Class Hierarchy | Class List | Class Members

MPCharSelected Class Reference

MP game character selected message (Type: 101). More...

#include <BustaNetInternal.h>

Inheritance diagram for MPCharSelected:

BustaNetInternalMsg List of all members.

Public Member Functions

 MPCharSelected (int pID, BustaModelCharacter selectedChar)
 CONSTRUCTOR.
int getPlayerID ()
 Returns the identification number of the player who has selected a character.
BustaModelCharacter getSelectedChar ()
 Returns the character the player has selected.

Detailed Description

MP game character selected message (Type: 101).

This message is received by all players when another player in a multiplayer game has made a character selection. The player can then tell who has made the selection and which character was selected.


Constructor & Destructor Documentation

MPCharSelected::MPCharSelected int  pID,
BustaModelCharacter  selectedChar
 

CONSTRUCTOR.

Creates an instance of the MPCharSelected class. Upon creation, the message details are specified.

Parameters:
pID The identification number of the player who has selected a character
selectedChar The character that was selected by the player


Member Function Documentation

int MPCharSelected::getPlayerID  ) 
 

Returns the identification number of the player who has selected a character.

An integer identification number of the player who has made a character selection is returned.

Returns:
The identification number of the player who has selected a character

BustaModelCharacter MPCharSelected::getSelectedChar  ) 
 

Returns the character the player has selected.

Returns an char representation of the character that the player has selected.

Returns:
A BustaModelCharacter representation of the selected character


Generated on Sun Aug 14 22:24:57 2005 for BustaSandwich Networking by  doxygen 1.4.2-20050421